CMAKE_MINIMUM_REQUIRED(VERSION 3.0)

include_directories(${COMN_DIR}/include)


link_directories(${COMN_DIR}/lib)
link_directories(${PROJECT_ROOT}/lib)

include_directories(${SOCI_INCLUDE_DIR})
link_directories(${SOCI_LIBRARY_DIR})

include_directories(${THIRD_PARTY}/sqlite/include)

aux_source_directory(. SOURCES)

add_library(dbpool STATIC ${SOURCES})

set_target_properties(dbpool PROPERTIES DEBUG_POSTFIX "d")
set_property(TARGET dbpool PROPERTY POSITION_INDEPENDENT_CODE TRUE)

add_subdirectory(demo)